package com.ftf.tp.blog.infrastructure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ftf.tp.blog.infrastructure.mapper.pos.ArticleSupportPO;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * @author tanghao
 * @date 2022/6/24
 */
public interface ArticleSupportMapper extends BaseMapper<ArticleSupportPO> {
    int updateBatch(List<ArticleSupportPO> list);

    int batchInsert(@Param("list") List<ArticleSupportPO> list);

    Long getSupportCount(Long targetId);

    Integer existSupport(Long userId, Long targetId);
}